﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:Rio_Framework_Pages_Controls="clr-namespace:Rio.Framework.Pages.Controls;assembly=Rio.Framework.Pages"
             xmlns:controls="clr-namespace:Rio.Manager.Application.Controls"
			 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
			 xmlns:mvvmLightCommand="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.SL4"
			 xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
			 x:Class="Rio.Manager.Application.Views.BarCodeAddTabView"
			 mc:Ignorable="d"
			 d:DesignHeight="768"
			 d:DesignWidth="1024">

    <!--Add barcode page.-->

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../../Skins/BarCodeAddTabSkin.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
        <Style x:Key="BorderStyle1" TargetType="Border">
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect BlurRadius="10"/>
                </Setter.Value>
            </Setter>
            <Setter Property="Background" Value="#4CF9F9F9"/>
        </Style>
        <Style x:Key="ComboBoxStyle"
			   TargetType="ComboBox">
            <Setter Property="Height"
					Value="25"/>
            <Setter Property="Margin"
					Value="5,0,5,0" />
            <Setter Property="HorizontalAlignment"
					Value="Stretch"/>
        </Style>
        <Style x:Key="TextBoxLenght3" TargetType="TextBox">
            <Setter Property="MaxLength" Value="3"/>
        </Style>
    </UserControl.Resources>

    <UserControl.DataContext>
        <Binding Path="BarCodeAddTab"
				 Source="{StaticResource Locator}" />
    </UserControl.DataContext>

    <!--Command initialization.-->
    <Grid x:Name="LayoutRoot">
        <i:Interaction.Triggers>
            <i:EventTrigger EventName="Loaded">
                <mvvmLightCommand:EventToCommand Command="{Binding InitializationCommand}" />
            </i:EventTrigger>
        </i:Interaction.Triggers>

        <!--Border.-->
        <Border HorizontalAlignment="Center" 
				Padding="15,15,15,15" 
				Margin="230,0,230,0"
				VerticalAlignment="Center"  
				BorderBrush="Black" Style="{StaticResource BorderStyle1}" 
				Background="#FFF9F9F9">

            <Grid>
                <!--General grid definition.-->
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <!--View Add an barcode parameter.-->

                <!--View title.-->
                <TextBlock TextWrapping="Wrap"
						   Text="{Binding BarCodeTitleAdd}"
						   FontWeight="Bold"
						   HorizontalAlignment="Left"
						   Margin="0,10,0,10"/>

                <!--Barcode general parameter.-->
                <StackPanel Orientation="Vertical"
							Grid.Row="1"
							d:LayoutOverrides="Height"
							Margin="0,0,0,0">

                    <!--General Information title.-->
                    <TextBlock TextWrapping="Wrap"
							   Text="{Binding BarCodeGeneralInformationAddTitle}"
							   FontWeight="Bold"
							   HorizontalAlignment="Left"                   
							   Margin="0,10,0,10" />

                    <!--BarCode identifier.-->
                    <TextBlock TextWrapping="Wrap"
							   Text="{Binding BarCodeIdentifierAddTitle}"
							   FontWeight="Bold"
							   Margin="20,0,0,10"/>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="600"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBox x:Name="TextBox_BarCodeId"
                                 Grid.Row="0"
								 Grid.Column="0"
								 TextWrapping="Wrap"                     
								 Text="{Binding BarCodeIdentifierAdd, Mode=TwoWay, NotifyOnValidationError=False}"
                                 LostFocus="TextBox_BarCodeId_LostFocus"
								 MaxLength="3"
								 Margin="20,0,0,20"/>
                    </Grid>

                    <!--BarCode name.-->
                    <TextBlock TextWrapping="Wrap"
							   Text="{Binding BarCodeNameAddTitle}"
							   FontWeight="Bold"
							   Margin="20,0,0,10"/>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="600"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBox Grid.Row="0"
								 Grid.Column="0"
								 TextWrapping="Wrap"                     
								 Text="{Binding BarCodeNameAdd, Mode=TwoWay, NotifyOnValidationError=False}"                     
								 Margin="20,0,0,20"/>
                    </Grid>

                    <!--BarCode description.-->
                    <TextBlock TextWrapping="Wrap"
							   Text="{Binding BarCodeDescriptionAddTitle}"
							   FontWeight="Bold"
							   Margin="20,0,0,10"/>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="600"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBox Grid.Row="0"
								 Grid.Column="0"
								 TextWrapping="Wrap"                     
								 Text="{Binding BarCodeDescriptionAdd, Mode=TwoWay, NotifyOnValidationError=False}"                     
								 Margin="20,0,0,20"
								 AcceptsReturn="True"
								 Height="60"/>
                    </Grid>

                    <!--BarCode activation by default.-->
                    <CheckBox Name="chbActivationBarCode" 
							  IsChecked="{Binding ChbActiveBarCodeIsChecked, Mode=TwoWay}"
							  Margin="20,0,0,20"
							  FontWeight="Bold"
							  Content="{Binding ChbActivateBarCodeLabel}"/>
                </StackPanel>

                <!--Barcode typology.-->
                <StackPanel Orientation="Vertical"
							Grid.Row="2"
							d:LayoutOverrides="Height"
							Margin="0,0,0,0">

                    <!--Separator between General information and typology.-->
                    <Path Data="M62,141 L185.19902,141"
						  Fill="Black"
						  Stretch="Fill"
						  Stroke="Black"
						  UseLayoutRounding="False"
						  Margin="50,0"
						  StrokeThickness="0.5"/>

                    <!--Typology Title.-->
                    <TextBlock TextWrapping="Wrap"                       
					   Text="{Binding BarCodeTypologyAddTitle}"
					   FontWeight="Bold"
					   Margin="0,20,0,10"/>

                    <!--BarCode typology type.-->
                    <TextBlock TextWrapping="Wrap"
							   Text="{Binding BarCodeTypologyTypeAddTitle}"
							   FontWeight="Bold"
							   Margin="20,0,0,10"/>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="300"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ComboBox Name="cbTypologyType"
								  Grid.Row="0"
								  Grid.Column="0"
								  Margin="20,0,0,20"
								  Style="{StaticResource ComboBoxStyle}"
								  ItemsSource="{Binding BarCodeTypologyTypeList}"
								  DisplayMemberPath="Name"
								  SelectedValue="{Binding SelectedDisplayBarCodeTypologyType, Mode=TwoWay}"/>
                    </Grid>

                    <!--BarCode typology prefix.-->
                    <TextBlock TextWrapping="Wrap"
							   Text="{Binding BarCodeTypologyPrefixAddTitle}"
							   FontWeight="Bold"
							   Margin="20,0,0,10"/>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="600"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBox x:Name="TextBox_BarCodePrefix"
                                 Grid.Row="0"
								 Grid.Column="0"
								 TextWrapping="Wrap"
                                 MaxLength="3"
								 Text="{Binding BarCodeTypologyPrefixAdd, Mode=TwoWay, NotifyOnValidationError=False}"
                                 LostFocus="TextBox_BarCodePrefix_LostFocus"
								 Margin="20,0,0,20"/>
                    </Grid>
                </StackPanel>

                <!--Barcode function.-->
                <StackPanel Orientation="Vertical"
							Grid.Row="3"
							d:LayoutOverrides="Height"
							Margin="0,0,0,0">

                    <!--Separator between typology and function.-->
                    <Path Data="M62,141 L185.19902,141"
						  Fill="Black"
						  Stretch="Fill"
						  Stroke="Black"
						  UseLayoutRounding="False"
						  Margin="50,0"
						  StrokeThickness="0.5"/>

                    <!--Function Title.-->
                    <TextBlock TextWrapping="Wrap"                       
							   Text="{Binding BarCodeFunctionAddTitle}"
							   FontWeight="Bold"
							   Margin="0,20,0,10"/>

                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="300"/>
                            <ColumnDefinition Width="305"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ComboBox Name="cbFunctionName"
								  Grid.Row="0"
								  Grid.Column="0"
								  Margin="20,0,0,20"
                                  Style="{StaticResource ComboBoxStyle}"
                                  IsEnabled="{Binding IsEnabledcbFunctionName}"
								  ItemsSource="{Binding BarCodeFunctionNameList}"
								  DisplayMemberPath="Name"
								  SelectedValue="{Binding SelectedDisplayBarCodeFunction, Mode=TwoWay}"/>
                        <CheckBox Name="chModifyFunctionBarCode"
                                  Grid.Column="1"
							      IsChecked="{Binding ChbModifyFunctionBarCodeIsChecked, Mode=TwoWay}"
							      Margin="5,10,0,20"
							      FontWeight="Bold"
							      Content="{Binding ChbModifyFunctionBarCodeLabel}"
                                  Click="chModifyFunctionBarCode_Click"/>
                    </Grid>
                </StackPanel>

                <!--Barcode function Folder separator.-->
                <StackPanel Orientation="Vertical"
							Grid.Row="4"
							d:LayoutOverrides="Height"
							Margin="0,0,0,0"
							Visibility="{Binding BarcodeFunctionFolderSeparatorVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibilityConverter}}">

                    <!--Function Title.-->
                    <TextBlock TextWrapping="Wrap"                       
							   Text="{Binding BarCodeSelectedFunctionAddTitle}"
							   FontWeight="Bold"
							   Margin="0,0,0,10"/>

                    <!--Check Box function parameter.-->
                    <CheckBox Name="chbDeleteCodebarPage"
							  IsChecked="{Binding ChbDeleteBarCodePageIsChecked, Mode=TwoWay}"
							  Margin="20,0,0,20"
							  FontWeight="Bold"
							  Content="{Binding ChbDeleteBarCodePageLabel}"/>
                    <CheckBox Name="chbManageError" 
							  IsChecked="{Binding ChbManageErrorIsChecked, Mode=TwoWay}"
							  Margin="20,0,0,20"
							  FontWeight="Bold"
							  Content="{Binding ChbManageErrorLabel}"/>
                    <CheckBox Name="chbFolderCorrespondence" 
							  IsChecked="{Binding ChbFolderCorrespondenceIsChecked, Mode=TwoWay}"
							  Margin="20,0,0,20"
							  FontWeight="Bold"
							  Content="{Binding ChbFolderCorrespondenceLabel}"/>

                    <!--Folder Correspondence if chbFolderCorrespondence is Checked.-->
                    <StackPanel Orientation="Vertical"
								Grid.Row="5"                                
								d:LayoutOverrides="Height"
								Margin="0,0,0,20"
								Visibility="{Binding FolderCorrespondenceVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibilityConverter}}">

                        <!--Organization and Folder Type Information.-->
                        <Rio_Framework_Pages_Controls:BindableOrganizationFolderTypePanel x:Name="UCOrganizationsFolderTypeBarCodeSeparatorFolder"
																		  Mode="Admin"
																		  Margin="50,0,0,10" 
																		  HorizontalAlignment="Left"
																		  SelectedOrganization="{Binding SelectedOrganization, Mode=TwoWay}"
																		  SelectedFolderType="{Binding SelectedFolderType, Mode=TwoWay}"
																		  OrganizationLabel="{Binding OrganizationLabel}"
																		  FolderTypeLabel="{Binding FolderTypeLabel}"/>

                        <!--Single Index.-->
                        <TextBlock TextWrapping="Wrap"                       
							   Text="{Binding BarCodeSingleIndexAddTitle}"
							   FontWeight="Bold"
							   Margin="50,0,0,10"/>

                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="355"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <ComboBox Name="cbSingleIndex"
								  Grid.Row="0"
								  Grid.Column="0"
								  Margin="50,0,0,10"
								  Style="{StaticResource ComboBoxStyle}"
								  ItemsSource="{Binding BarCodeSingleIndexList}"
								  SelectedValue="{Binding SelectedDisplayBarCodeSingleIndex, Mode=TwoWay}"
								  IsEnabled="{Binding IsEnabledParameterSingleIndexGroupControl}"
								  DisplayMemberPath="Name"/>
                        </Grid>

                        <!--Activate Start and End of character single index search in barcode.-->
                        <!--Single index character correspondence.-->
                        <!--<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="355"/>
								<ColumnDefinition Width="*"/>
							</Grid.ColumnDefinitions>
							<StackPanel Orientation="Horizontal"
										Grid.Row="6"                                
										d:LayoutOverrides="Height"
										Margin="0,0,0,0"
										Grid.Column="0">-->
                        <!--Start character number.-->
                        <!--<TextBlock TextWrapping="Wrap"
										   Text="{Binding BarcodeStartCharacterSingleIndexAddTitle}"
										   FontWeight="Bold"
										   Margin="50,10,0,10"/>
								<telerik:RadNumericUpDown x:Name="UppDownStartCharacterSingleIndex"
														  NumberDecimalDigits="0"
														  Width="0" 
														  Height="10"
														  Value="{Binding BarcodeStartCharacterSingleIndex, Mode=TwoWay}" 
														  Minimum="0"                                                          
														  IsEnabled="{Binding IsEnabledParameterSingleIndexGroupControl}"/>-->
                        <!--End character number.-->
                        <!--<TextBlock TextWrapping="Wrap"
										   Text="{Binding BarcodeEndCharacterSingleIndexAddTitle}"
										   FontWeight="Bold"
										   Margin="30,10,0,10"/>
								<telerik:RadNumericUpDown x:Name="UppDownEndCharacterSingleIndex"
														  NumberDecimalDigits="0"
														  Width="0" 
														  Height="10"
														  Value="{Binding BarcodeEndCharacterSingleIndex, Mode=TwoWay}"
														  Minimum="0"                                                          
														  IsEnabled="{Binding IsEnabledParameterSingleIndexGroupControl}"/>
							</StackPanel> 
						</Grid>-->
                    </StackPanel>

                    <CheckBox Name="chbLimit" 
							  IsChecked="{Binding ChbLimitIsChecked, Mode=TwoWay}"
							  Margin="20,0,0,20"
							  FontWeight="Bold"
							  Content="{Binding ChbLimitLabel}"/>

                    <!--Folder limit document or page if ChbLimitIsChecked is Checked.-->
                    <StackPanel Orientation="Vertical"
								Grid.Row="7"                                
								d:LayoutOverrides="Height"
								Margin="0,0,0,20"
								Visibility="{Binding FolderLimitVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibilityConverter}}">

                        <!--Radio button parameters (document and page).-->
                        <RadioButton x:Name="RadioButtonDocumentLimit"
									 GroupName="SeparatorFolderLimit" 
									 IsChecked="{Binding BtnRadDocumentLimitIsChecked,Mode=TwoWay}"                                     
									 Margin="50,0,0,10"
									 FontWeight="Bold"
									 Content="{Binding BtnRadDocumentLimitLabel}"/>
                        <RadioButton x:Name="RadioButtonPageLimit"
									 GroupName="SeparatorFolderLimit"                                     
									 IsChecked="{Binding BtnRadPageLimitIsChecked, Mode=TwoWay}"
									 Margin="50,0,0,10"
									 FontWeight="Bold"
									 Content="{Binding BtnRadPageLimitLabel}"/>

                        <!--Bound parameters-->
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="355"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <StackPanel Orientation="Horizontal"
										Grid.Row="8"                                
										d:LayoutOverrides="Height"
										Margin="0,0,0,0"
										Grid.Column="0">
                                <!--Lower bound.-->
                                <TextBlock TextWrapping="Wrap"
										   Text="{Binding BarcodeLowerBoundLimitAddTitle}"
										   FontWeight="Bold"
										   Margin="50,10,0,10"/>
                                <telerik:RadNumericUpDown x:Name="UppDownLowerBoundLimit"
														  NumberDecimalDigits="0"
														  Width="0" 
														  Height="10"
														  Value="{Binding BarcodeLowerBoundLimit, Mode=TwoWay}"  
														  Minimum="0"
                                                          LostFocus="UppDownLowerBoundLimit_LostFocus"/>
                                <!--Upper bound.-->
                                <TextBlock TextWrapping="Wrap"
										   Text="{Binding BarcodeUpeprBoundLimitAddTitle}"
										   FontWeight="Bold"
										   Margin="5,10,0,10"/>
                                <telerik:RadNumericUpDown x:Name="UppDownUpperBoundLimit"
														  NumberDecimalDigits="0"
														  Width="0" 
														  Height="10"
														  Value="{Binding BarcodeUpperBoundLimit, Mode=TwoWay}" 
														  Minimum="0"
                                                          LostFocus="UppDownUpperBoundLimit_LostFocus"/>
                            </StackPanel>
                        </Grid>
                    </StackPanel>
                </StackPanel>

                <!--BarCode function document separator.-->
                <StackPanel Orientation="Vertical"
							Grid.Row="9"                                
							d:LayoutOverrides="Height"
							Margin="0,0,0,0"
							Visibility="{Binding BarcodeFunctionDocumentSeparatorVisible, Mode=TwoWay, Converter={StaticResource BooleanToVisibilityConverter}}">

                    <!--Function Title.-->
                    <TextBlock TextWrapping="Wrap"                       
							   Text="{Binding BarCodeSelectedFunctionAddTitle}"
							   FontWeight="Bold"
							   Margin="0,0,0,10"/>

                    <!--Organization and Folder Type Information.-->
                    <Rio_Framework_Pages_Controls:BindableOrganizationFolderTypePanel x:Name="UCOrganizationsFolderTypeBarCodeSeparatorDocument"
																					  Mode="Admin"
																					  Margin="50,0,0,10"  
																					  HorizontalAlignment="Left"
																					  SelectedOrganization="{Binding SelectedOrganization, Mode=TwoWay}"
																					  SelectedFolderType="{Binding SelectedFolderType, Mode=TwoWay}"
																					  OrganizationLabel="{Binding OrganizationLabel}"
																					  FolderTypeLabel="{Binding FolderTypeLabel}"
																					  IsEnabled="{Binding IsEnabledFolderTypeAndOrganization}"/>

                    <!--Parameter grid barcode separator document.-->
                    <!--Barcode parameters radgridview-->
                    <telerik:RadGridView x:Name="radGridView_BarcoDe_Separator_Document_Parameters_Add"
										 ItemsSource="{Binding BarCodeSeparatorDocumentParametersList}"
										 SelectionMode="Extended"
										 AutoGenerateColumns="False"
										 Margin="20,10,30,20"
										 ActionOnLostFocus="None"
										 CanUserInsertRows="{Binding CanInsertRowGridSepDoc, Mode=TwoWay}"                                          
										 CanUserDeleteRows="{Binding IsChecked, Mode=TwoWay, ElementName=CanUserDeleteRowsCheckBox}"
										 CanUserFreezeColumns="False"
										 RowIndicatorVisibility="Collapsed"
										 CanUserResizeColumns="True"
										 ShowInsertRow="True" 
                                         PreparedCellForEdit="radGridView_BarcoDe_Separator_Document_Parameters_Add_PreparedCellForEdit"
                                         RowValidated="radGridView_BarcoDe_Separator_Document_Parameters_Add_RowValidated"
                                         BeginningEdit="radGridView_BarcoDe_Separator_Document_Parameters_Add_BeginningEdit"
										 CellValidating="radGridView_BarcoDe_Separator_Document_Parameters_Add_CellValidating">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="AddingNewDataItem">
                                <mvvmLightCommand:EventToCommand Command="{Binding AddRowCommand}" />
                            </i:EventTrigger>
                        </i:Interaction.Triggers>

                        <!--Grid.Row="1"-->

                        <telerik:RadGridView.Columns>
                            
                            <!--Delete Button.-->
                            <telerik:GridViewColumn>
                                <telerik:GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <telerik:RadButton Content="{Binding BarCodeAddTab.Button_Delete_Barcode_Document_Separator_Parameter, Source={StaticResource Locator}, Mode=TwoWay}"
														   Command="telerik:RadGridViewCommands.Delete"
														   CommandParameter="{Binding}"/>
                                    </DataTemplate>
                                </telerik:GridViewColumn.CellTemplate>
                            </telerik:GridViewColumn>

                            <!--Commit Button.-->
                            <telerik:GridViewColumn>
                                <telerik:GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <telerik:RadButton Content="{Binding BarCodeAddTab.Button_Validate_Barcode_Document_Separator_Parameter, Source={StaticResource Locator}, Mode=TwoWay}"
														   Command="telerik:RadGridViewCommands.CommitEdit"
														   CommandParameter="{Binding}"/>
                                    </DataTemplate>
                                </telerik:GridViewColumn.CellTemplate>
                            </telerik:GridViewColumn>
                            
                            
                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentId, Source={StaticResource Locator}, Mode=TwoWay}"
							  						    DataMemberBinding="{Binding ParamCode}"
                                                        EditorStyle="{StaticResource TextBoxLenght3}"/>
                            <controls:CustomComboBoxColumnItemNameBarcodeDocSep Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentChooseNatureName, Source={StaticResource Locator}, Mode=TwoWay}" 
                                                                                ItemsSource="{Binding BarCodeItemList, Mode=TwoWay}"
                                                                                SelectedItem="{Binding ItemName, Mode=TwoWay}" />

                            <!--GridViewComboBoxColumn but the data is lost when the column isn't selected-->
                            <!--<telerik:GridViewComboBoxColumn UniqueName="radGridView_BarcoDe_Separator_Document_Parameters_Add_Items" 
                                                            Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentChooseNatureName, Source={StaticResource Locator}, Mode=TwoWay}"
                                                            ItemsSource="{Binding BarCodeItemList}"
															DataMemberBinding="{Binding ItemName, Mode=TwoWay}"
															SelectedValueMemberPath="Name"
															DisplayMemberPath="Name" />-->

                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentNatureName, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding NatureName}"/>
                            <!--<telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentItemName, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding ItemName}"
                                                        IsReadOnly="True"/>-->
                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentPdfMerge, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding PdfMerge}"/>
                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentDeleteBarCodePage, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding DeleteBarCodePage}"/>
                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentManageError, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding ErrorManagment}"/>
                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentInfLimit, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding InfLimit}"/>
                            <telerik:GridViewDataColumn Header="{Binding BarCodeAddTab.HeaderBarCodeSeparatorDocumentSupLimit, Source={StaticResource Locator}, Mode=TwoWay}"
														DataMemberBinding="{Binding SupLimit}"/>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </StackPanel>

                <!--Button partie-->
                <StackPanel Orientation="Horizontal"
							Grid.Row="10"
							d:LayoutOverrides="Height"
							Margin="0,0,0,0"
							HorizontalAlignment="Right">

                    <!--Add save barcode button-->
                    <Button x:Name="Button_Save"
							Content="{Binding BarCodeAddTab.Button_Save_BarCode, Source={StaticResource Locator},Mode=OneWay}"   
							Margin="0,10,10,10"
							Command="{Binding SaveBarCodeCommand}"
							IsEnabled="{Binding IsEnabledAddBarCodeButton, Mode=TwoWay}"/>

                    <!--Update barcode button-->
                    <Button x:Name="Button_Modify"
							Content="{Binding BarCodeAddTab.Button_Update_BarCode, Source={StaticResource Locator},Mode=OneWay}"
							Margin="0,10,10,10"
							Command="{Binding UpdateBarCodeCommand}"
							IsEnabled="{Binding IsEnabledUpdateBarCodeButton, Mode=TwoWay}"/>

                    <!--Button close-->
                    <Button x:Name="Button_Close"
							Content="{Binding BarCodeAddTab.Button_Close_BarCode, Source={StaticResource Locator},Mode=OneWay}"
							Margin="0,10,30,10"
							Command="{Binding CloseBarCodeCommand}"/>
                </StackPanel>

            </Grid>
        </Border>
    </Grid>
</UserControl>
